package com.nest4cloud.nest.account.vo.accTransaction;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class AccTransactionsVo {

	@Schema(description = "账单ID")
	private Long id;

	@Schema(description = "账户id")
	private Long accountId;

	@Schema(description = "账户名称")
	private String accountName;

	@Schema(description = "账户金额")
	private BigDecimal amount;

	@Schema(description="交易类型:1收入;2支出;3转账")
	private String transactionType;

	@Schema(description="分类ID")
	private Long categoryId;

	@Schema(description="分类名称")
	private String categoryName;

	@Schema(description="交易日期")
	@JsonFormat(pattern = "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'")
	private LocalDateTime date;

	@Schema(description="账单描述")
	private String description;

	@Schema(description="创建时间")
	private LocalDateTime createTime;

}
